/*
 *  本文件主要放置全局样式类
 */

// loading样式
.loading-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  .loading,
  div {
    position: absolute;
    top: 50%;
    left: 43%;
    width: 150px;
    height: 15px;
    transform: translateY(-50%);
  }
  .loading,
  div span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    background: #3be8b0;
    border-radius: 50%;
    animation: load 1.04s ease infinite;
    &:nth-child(2) {
      background: #1aafd0;
    }
    & span:nth-child(3) {
      background: #6a67ce;
    }
    & span:nth-child(4) {
      background: #ffb900;
    }
    & span:last-child {
      margin-right: 0;
    }
  }

  @keyframes load {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      transform: scale(0);
    }
    75% {
      transform: scale(0.5);
    }
    100% {
      opacity: 0.5;
      transform: scale(1);
    }
  }
  .loading span:nth-child(1) {
    animation-delay: 0.13s;
  }
  .loading span:nth-child(2) {
    animation-delay: 0.26s;
  }
  .loading span:nth-child(3) {
    animation-delay: 0.39s;
  }
  .loading span:nth-child(4) {
    animation-delay: 0.52s;
  }
}

//消息弹框样式
.message-container {
  &.ion-info {
    .alert-head .alert-title {
      color: #2d8cf0;
    }
  }
  &.ion-success {
    .alert-head .alert-title {
      color: rgb(25, 190, 107);
    }
  }
  &.ion-warning {
    .alert-head .alert-title {
      color: #f90;
    }
  }
  &.ion-error {
    .alert-head .alert-title {
      color: #ed4014;
    }
  }
  &.ion-question {
    .alert-head .alert-title {
      color: #dadada;
    }
  }
  .alert-button-group {
    display: flex;
    flex-direction: row;
  }
}
